<?php

namespace App\Enums;

use BenSampo\Enum\Enum;

/**
 * @method static static OptionOne()
 * @method static static OptionTwo()
 * @method static static OptionThree()
 */
final class DataPermission extends Enum
{
    //状态:0=全部,1=自己相关
    const ALL = 0;
    const SELF = 1;



    public static function getDescription(mixed $value): string
    {
        return match ($value) {
            self::ALL => '全部',
            self::SELF => '自己相关',
            default => self::getKey($value),
        };
    }
}
